package com.btobtob.a.biz.user.config;

import io.dapr.actors.client.ActorClient;
import io.dapr.client.DaprClient;
import io.dapr.client.DaprClientBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DaprConfig {

    private static final DaprClientBuilder builder = new DaprClientBuilder();

    @Bean
    public DaprClient buildDaprClient() {
        return builder.build();
    }

    @Bean
    public ActorClient buildActorClient() {
        return new ActorClient();
    }
}
